package com.xingfudazi.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xingfudazi.app.domain.AppMember;
import com.xingfudazi.app.domain.AppMemberInfo;
import com.xingfudazi.app.domain.ImUser;
import com.xingfudazi.app.mapper.ImUserMapper;
import com.xingfudazi.app.service.ImUserService;
import org.springframework.stereotype.Service;

import javax.sql.rowset.serial.SerialArray;

/**
 * @author YuJiaMing
 * date 2024年07月27日 12:54
 */
@Service
public class ImUserServiceImpl extends ServiceImpl<ImUserMapper, ImUser> implements ImUserService {


    @Override
    public void saveByAppMember(AppMember appMember) {
         this.save(ImUser.getOne(appMember));
    }

    @Override
    public void updateByAppMemberInfo(AppMemberInfo appMemberInfo) {
        this.updateById(ImUser.getOne(appMemberInfo));
    }
}
